<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>this is list.jsp</title>
	</head>
	<body>
		<h1>
			this is list .jsp
		</h1>

		<table border="1" width="60%">
			<s:iterator value="pageView.list" var="user" status="i">
				<tr>
					<td>
						<s:property value="#user.id"></s:property>
					</td>
					<td>
						<s:property value="#user.name"></s:property>
					</td>
					<td>
						<s:a action="">修改</s:a>
					</td>
					<td>
						<s:a action="">查看</s:a>
					</td>
				</tr>
			</s:iterator>
		</table>
		<div>
			共
			<s:property value="pageView.totalRecord" />
			条记录 共
			<s:property value="pageView.totalPage-1" />
			页 当前第
			<s:property value="pageView.curentPage+1" />
			页
		</div>
		<s:a action="utilAction?requestPage=0">首页</s:a>

		<s:a action="utilAction?requestPage=%{pageView.curentPage-1}">上一页</s:a>
		
		<s:a action="utilAction?requestPage=%{pageView.curentPage+1}">下一页</s:a>
		<s:a action="utilAction?requestPage=%{pageView.totalPage-1}">末页</s:a>

        
		startPage:
		<s:property value="pageView.startPage" />
		endPage:
		<s:property value="pageView.endPage" />
		
		<s:debug></s:debug>

	</body>
</html>